<?php

namespace App\Library\Logic;

use App\Models\SlideModel;
use Illuminate\Database\Eloquent\Collection;

class SlideLogic extends SlideModel
{
    /**
     * list
     */
    public static function list(): Collection
    {
        return self::query()->where('open', 1)->orderBy('sort')->get([
            'file_id',
            'title',
            'link',
            'login',
        ]);
    }
}
